{% extends 'template.html' %}

{% block username %}
    {{ head.username }}
{% endblock %}

{% block content %}
    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">{{ head.title }}</h1>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-default">
                    <!--<div class="panel-heading">
                      <div class="alert alert-success" role="alert">当前任务状态</div>
                    </div>-->
                    <div class="alert alert-success" role="alert">本次热更新的任务状态</div>
                    <div class="panel-body">
                        <table id="mytable" class="display" width="100%" cellspacing="0">
                            <thead>
                            <tr>
                                <th>id</th>
                                <th>项目</th>
                                <th>地区</th>
                                <th>热更类型</th>
                                <th>标题</th>
                                <th>uuid</th>
                                <th>绑定代号</th>
                                <th>执行顺序</th>
                                <th>优先级</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-default">
                    <!--<div class="panel-heading">
                      <div class="alert alert-success" role="alert">当前任务状态</div>
                    </div>-->
                    <div class="alert alert-danger" role="alert">当前阻塞在本次热更新之前的任务队列</div>
                    <div class="panel-body">
                        <table id="mytable2" class="display" width="100%" cellspacing="0">
                            <thead>
                            <tr>
                                <th>id</th>
                                <th>项目</th>
                                <th>地区</th>
                                <th>热更类型</th>
                                <th>标题</th>
                                <th>uuid</th>
                                <th>绑定代号</th>
                                <th>执行顺序</th>
                                <th>优先级</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}
{% block bodyjs %}
    <script src="/static/js/jquery.dataTables.js"></script>
    {{ django_context_varable }}
    {% verbatim %}
    <script id="tpl" type="text/x-handlebars-template">
        {{#each func}}
        <button type="button" class="btn btn-{{this.type}} btn-sm" onclick="{{this.fn}}">{{this.name}}</button>
        {{/each}}
    </script>
    {% endverbatim %}
    <script src="/static/js/handlebars-v3.0.1.js"></script>
    <script src="/static/js/reconnecting-websocket.js"></script>
    <script src="/static/js/myhotupdate.js?v=20190708001"></script>
{% endblock %}
{% block css %}
    <link href="/static/css/jquery.dataTables.css" rel="stylesheet" type="text/css">
    <link href="/static/css/mycss.css" rel="stylesheet" type="text/css">
{% endblock %}
